package demo15;

import demo14.LoginClient;

import java.io.*;
import java.net.Socket;

public class ThreadTest4 extends Thread{
    private Socket socket;
    public ThreadTest4(){

    }

    public ThreadTest4(Socket socket){
        this.socket=socket;
    }

    public void run(){
        try {
            InputStream is=socket.getInputStream();
            ObjectInputStream ois=new ObjectInputStream(is);
            File file=(File)ois.readObject();
        } catch (IOException e) {
            e.printStackTrace();
        } catch (ClassNotFoundException e) {
            e.printStackTrace();
        }
    }

}
